package com.yuexun.dhdoctor.module.meeting.adapter;

import android.widget.AbsListView;

import com.yuexun.dhdoctor.R;
import com.yuexun.dhdoctor.module.meeting.bean.MeetingSignData;

import org.kymjs.kjframe.widget.AdapterHolder;
import org.kymjs.kjframe.widget.KJAdapter;

import java.util.Collection;

/**
 * Created by Administrator on 2017/4/10 0010.
 */

public class MeetingSignAdapter extends KJAdapter<MeetingSignData> {

    String[] state = new String[]{"未签到", "已签到", "会议过期"};

    public MeetingSignAdapter(AbsListView view, Collection<MeetingSignData> mDatas, int itemLayoutId) {
        super(view, mDatas, itemLayoutId);
    }

    @Override
    public void convert(AdapterHolder adapterHolder, MeetingSignData meetingBeanDate, boolean b) {
        adapterHolder.setText(R.id.signState,state[meetingBeanDate.getSignState()]);
        adapterHolder.setText(R.id.signDatetime,meetingBeanDate.getSignDatetime());
    }

}
